package com.jflyfox.modules.admin.mission;

import com.jflyfox.component.base.BaseProjectModel;
import com.jflyfox.jfinal.component.annotation.ModelBind;

@ModelBind(table = "sys_mission",key = "mission_id")
public class SysMission extends BaseProjectModel<SysMission> {

	private static final long serialVersionUID = 1L;
	public static final SysMission dao = new SysMission();

    //columns START
    private String MISSION_ID = "mission_id";  // 任务ID
    private String HEADCOUNT = "headcount";  // 正在进行的人数
    private String HONGMENG_COIN = "hongmeng_coin";  // 红檬健康币
    private String MISSION_NAME = "mission_name";  // 任务名
    private String SYS_PLAN_ID = "sys_plan_id";  // 计划类型ID
    private String MISSION_TYPE_NAME = "mission_type_name";  // 任务类型名字
    private String PLAN_STAGE = "plan_stage";  // 项目阶段
    
    public SysMission setMissionId(Integer value) {
        set(MISSION_ID, value);
        return this;
    }

	public Integer getMissionId() {
		return get(MISSION_ID);
	}
    public SysMission setHeadcount(Integer value) {
        set(HEADCOUNT, value);
        return this;
    }

	public Integer getHeadcount() {
		return get(HEADCOUNT);
	}
    public SysMission setHongmengCoin(Integer value) {
        set(HONGMENG_COIN, value);
        return this;
    }

	public Integer getHongmengCoin() {
		return get(HONGMENG_COIN);
	}
    public SysMission setMissionName(String value) {
        set(MISSION_NAME, value);
        return this;
    }

	public String getMissionName() {
		return get(MISSION_NAME);
	}
    public SysMission setSysPlanId(Integer value) {
        set(SYS_PLAN_ID, value);
        return this;
    }

	public Integer getSysPlanId() {
		return get(SYS_PLAN_ID);
	}
    public SysMission setMissionTypeName(String value) {
        set(MISSION_TYPE_NAME, value);
        return this;
    }

	public String getMissionTypeName() {
		return get(MISSION_TYPE_NAME);
	}
    public SysMission setPlanStage(Integer value) {
        set(PLAN_STAGE, value);
        return this;
    }

	public Integer getPlanStage() {
		return get(PLAN_STAGE);
	}
	
	@Override
	public String toString() {
		String log = ""; 
		log += "[missionId:" + getMissionId() + "]";
		log += "[headcount:" + getHeadcount() + "]";
		log += "[hongmengCoin:" + getHongmengCoin() + "]";
		log += "[missionName:" + getMissionName() + "]";
		log += "[sysPlanId:" + getSysPlanId() + "]";
		log += "[missionTypeName:" + getMissionTypeName() + "]";
		log += "[planStage:" + getPlanStage() + "]";
		return log;
	}
}